"""
列表的循环遍历
"""
def list_while():
    list1 = ['a', 'b', 'c', 'd', 'e']
    index = 0
    while index < len(list1):
        print(list1[index])
        index += 1
list_while()
def list_for():
    list1 = ['a', 'b', 'c', 'd', 'e']
    for item in list1:
        print(item)
list_for()
